one to many relationship in asp net entity framework with role

91

one to many relationship in asp net entity framework with role -

modelBuilder.Entity<Grade>()
    .HasMany<Student>(g => g.Students)
    .WithRequired(s => s.CurrentGrade)
    .WillCascadeOnDelete();

Comments

Submit
0 Comments